package com.example.loginserver.utils;

import java.util.HashMap;

public class Result extends HashMap<Object, Object> {


    public static Result OK(){
        Result r = new Result();
        r.put("code",200);
        return r;
    }
    public static Result OK(Object data){
        Result ok = OK();
        ok.put("data",data);
        return ok;
    }

}
